package pojo;

public class Book {
    private int id;//图书id
    private String name;//图书名称
    private String author;//图书作者
    private String descript;//图书简介
    public String getAuthor() {
        return author;
    }
    public void setAuthor(String author) {
        this.author = author;
    }
    private String category;//图书所属分类
    private double price;//图书价格
    private String datetime;//图书发布时间
    private String img;//图书图书
    private int special;//图书是否特价
    private int hot;//图书是否热门
    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getCategory() {
        return category;
    }
    public void setCategory(String category) {
        this.category = category;
    }
    public double getPrice() {
        return price;
    }
    public void setPrice(double price) {
        this.price = price;
    }
    public String getDatetime() {
        return datetime;
    }
    public void setDatetime(String datetime) {
        this.datetime = datetime;
    }
    public String getImg() {
        return img;
    }
    public void setImg(String img) {
        this.img = img;
    }

    public int getSpecial() {
        return special;
    }

    public void setSpecial(int special) {
        this.special = special;
    }

    public int getHot() {
        return hot;
    }

    public void setHot(int hot) {
        this.hot = hot;
    }

    public String getDescript() {
        return descript;
    }

    public void setDescript(String descript) {
        this.descript = descript;
    }

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", author='" + author + '\'' +
                ", descript='" + descript + '\'' +
                ", category='" + category + '\'' +
                ", price=" + price +
                ", datetime='" + datetime + '\'' +
                ", img='" + img + '\'' +
                ", special=" + special +
                ", hot=" + hot +
                '}';
    }
}
